// 导入request.js请求工具
import request from '@/utils/request.js'
// 员工管理相关接口

// 获取员工list的接口
export const getEmployeeList = (params) => {
    return request.get('/employee/page', {
        params
    })
}

// 获取one员工的接口
export const queryEmployeeById = (id) => {
    return request.get(`/employee/${id}`)
}

// tj员工的接口
export const addEmployeeApi = (employeeData) => {
    return request.post('/employee', employeeData);
}

// 修改员工的接口
export const editEmployeeApi = (employeeData) => {
    return request.put('/employee', employeeData);
}
// 删除员工的接口
export const deleteEmployeeApi = (i) => {
    return request.delete('/employee',{params: {	
        id:i
      }});
}
